package net.cyndeline.misc

import java.io.InputStream

object ResourceLoader {
  
  def load(path: String): InputStream = {
    val input = ResourceLoader.getClass.getResourceAsStream(path)
    
    if (input == null) {
      ResourceLoader.getClass.getResourceAsStream("/" + path)
    } else {
      input
    }
  }
}